import Main from '../views/main/main'
import Public from '../views/public/public'
import Varieties from '../views/varieties/varieties'
import Detail from '../views/detail/detail'

export interface RouteItem{
    path:string,
    component?:any,
    redirect?:string,
    children?:RouteItem[]
}


let routes:RouteItem[] = [
    {
        path:'/main',
        component:Main
    },
    {
        path:'/public',
        component:Public
    },
    {
        path:'/varieties/:pet_breed',
        component:Varieties
    },
    {
        path:'/detail/:id',
        component:Detail
    },
    {
        path:'/',
        redirect:'/main'
    }
];

export default routes
